//
//  DefineConstant.swift
//  WeiboSwift
//
//  Created by 战场原黑仪 on 16/7/19.
//  Copyright © 2016年 战场原黑仪. All rights reserved.
//

import UIKit

//日期格式
public let Defautl_DateFormatter = NSDateFormatter()

// app切换根控制器的通知
let WBSwitchRootViewControllerNoti = "WBSwitchRootViewControllerNoti"

// 微博账号
let wbName = "rangyuan05788697@163.com"
let wbPasswd = "bbb333"

// 新浪微博相关信息
let APPKEY = "1949915506"
let APPSECRET = "f0e75f4226e77141a8f6d430f308e686"

//MARK: - 回调页面
public let APPREDICRECT_URI = "http://www.baidu.com"

//MARK: - 屏幕宽高
public let SCREEN_W = UIScreen.mainScreen().bounds.width
public let SCREEN_H = UIScreen.mainScreen().bounds.height

//MARK: - 颜色
//主背景颜色
public let Main_Color: UIColor = UIColor(red: 237/255, green: 237/255, blue: 237/255, alpha: 1)

//主题颜色
public let ThemeColor: UIColor = UIColor.orangeColor()

public func RGB(red: CGFloat, green: CGFloat, blue: CGFloat) -> UIColor {
    return UIColor(red: red/255, green: green/255, blue: blue/255, alpha: 1)
}

public let DarkGrayColor: UIColor = UIColor.darkGrayColor()
public let GrayColor: UIColor = UIColor.grayColor()
public let WhiteColor: UIColor = UIColor.whiteColor()
public let ClearColor: UIColor = UIColor.clearColor()
//随机颜色
func RandomColor() -> UIColor {
    let r = random()%256
    let g = random()%256
    let b = random()%256
    return RGB(CGFloat(r), green: CGFloat(g), blue: CGFloat(b))
}

//MARK: - 字体
public let Normal_Font: UIFont = {
    let font = UIFont.systemFontOfSize(14)
    return font
}()
public let Medium_Font: UIFont = UIFont.systemFontOfSize(15)

//MARK: - collection item大小
// item间距(最小)
public let itemMargin_S: CGFloat = 5
// cell宽高(最小)
public let itemWH_S: CGFloat = SCREEN_W/4

//MARK: - view 参数
public let ViewMargin_S: CGFloat = 10
public let ViewMargin_SS: CGFloat = 5
public let headImageSize: CGSize = CGSize(width: 35, height: 35)
